package net.lahuobao.export.service.comm;

import java.io.IOException;
import java.io.Writer;
import java.util.List;

import javax.servlet.http.HttpServletResponse;

import org.jeecgframework.core.common.service.CommonService;
import org.springframework.stereotype.Service;

/**
 * 生成文件公共接口
 * @author Administrator
 *
 */
public interface IStreamGen extends CommonService{
	
	public void init();
	public void finish(HttpServletResponse response);
	
	/**
	 * 
	 * @param writer 输出流
	 */
	public <T>boolean createStream(Writer writer, String type, HttpServletResponse response, List<T> dataList, int limit, int index) throws IOException, InstantiationException, IllegalAccessException ;
}
